Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry if there was a rpc error #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Retry if there was a rpc error #17

wants to merge 1 commit into from

Conversation

fkenji
Copy link

@fkenji fkenji commented Feb 23, 2022

Retry a transaction on rpc errors, ie:

error while sending transaction: client: rpc error: code = Internal desc = failed to send transaction to a collection node: 3 errors occurred:
	* failed to send transaction to collection node at flow-1.staked.cloud:3569: rpc error: code = DeadlineExceeded desc = context deadline exceeded
	* failed to send transaction to collection node at p2p.240cb98b-097c-4473-8db7-e018030fec00.flow.bison.run:3569: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp: lookup p2p.240cb98b-097c-4473-8db7-e018030fec00.flow.bison.run on 169.254.169.254:53: no such host"
	* failed to send transaction to collection node at flow-0.staked.cloud:3569: rpc error: code = DeadlineExceeded desc = context deadline exceeded

Copy link
Collaborator

@judezhu judezhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants